<!-- Block scheduler module -->
<div id="scheduler_block_left">
    <h4>przypomnij o soczewkach <span class="collapse" style="display: none"></span><span class="expand"style="display: none" ></span></h4>
    <div class="block_content">
        
        {if isset($error) && $error}
           <div id="error-message" style="display: none">{$error}</div>
            <script type="text/javascript">
                $(document).ready(function() {
                    $.fancybox($("#error-message").html(),{});
                });
            </script>
        {/if}

        {if isset($success) && $success}
           <div id="success-message" style="display: none">{$success}</div>
            <script type="text/javascript">
                $(document).ready(function() {
                    $.fancybox($("#success-message").html(),{});
                });
            </script>
        {/if}
            
        <form action="{$link->getPageLink('index.php')}" method="post" >
            <p><input type="text" name="scheduled_at" id="scheduler_scheduled_at" value="{$rememberDay|date_format:"%Y-%m-%d"}" /></p>
            <p><input type="text" name="scheduler_email" id="scheduler_email" value="{l s='twój e-mail' mod='blockscheduler'}" onfocus="javascript:if(this.value=='{l s='twój e-mail' mod='blockscheduler'}')this.value='';" onblur="javascript:if(this.value=='')this.value='{l s='twój e-mail' mod='blockscheduler'}';" /><br />
            <input type="submit" class="button_mini" value="Wyślij" name="submitScheduler" /></p>
        </form>
        <div class="clearfix"></div>
    </div>
</div>
<!-- /Block scheduler module -->
<script type="text/javascript">
    $(function() {
        $("#scheduler_scheduled_at" ).datepicker({ minDate: +1, numberOfMonths: 3, showButtonPanel: true, dateFormat: 'yy-mm-dd', firstDay: 1 });
        $("#scheduler_scheduled_at" ).datepicker( $.datepicker.regional[ "pl" ] );
        $("#anim" ).change(function() {
            $("#scheduler_scheduled_at" ).datepicker( "option", "showAnim", $( this ).val() );
        });
    });
</script>